unity delete all children

116

unity destroy all children -

while (transform.childCount > 0) {
    DestroyImmediate(transform.GetChild(0).gameObject);
}

Comments

Submit
0 Comments